package org.tuoren.official.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.tuoren.common.core.validate.AddGroup;
import org.tuoren.common.core.validate.EditGroup;
import org.tuoren.common.mybatis.core.domain.BaseEntity;
import org.tuoren.official.domain.TChannelImages;

/**
 * 创新联合体轮播图业务对象 t_channel_images
 *
 * @author Lion Li
 * @date 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TChannelImages.class, reverseConvertGenerate = false)
public class TChannelImagesBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 创新联合体Id
     */
    @NotNull(message = "创新联合体Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long channelId;

    /**
     * 轮播图地址
     */
    @NotBlank(message = "轮播图地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgUrl;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 是否展示（0代表展示 2代表隐藏）
     */
    @NotBlank(message = "是否展示（0代表隐藏 1代表展示）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isShow;
    /**
     * 移动端图片
     */
    @NotBlank(message = "移动端轮播图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appPhotoUrl;

}
